<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body class="timo-layout-page">
    <div class="layui-card">
        <div class="layui-card-header timo-card-header">
            <span><i class="fa fa-bars"></i> 考勤信息</span>
            <i class="layui-icon layui-icon-refresh refresh-btn"></i>
        </div>
        <div class="layui-card-body">

            <div class="layui-row timo-card-screen">
                <div class="pull-left layui-form-pane timo-search-box">
                    <div class="layui-inline">
                        <label class="layui-form-label">用户</label>
                        <div class="layui-input-block">
                            <input id="laydate" lay-key="1" type="text" name="payDateStr"  placeholder="请输入查找用户" autocomplete="off" class="layui-input">
                        </div>

                    </div>

                    <div class="layui-inline">
                        <button class="layui-btn timo-search-btn">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>
                </div>

            </div>
            <div class="timo-table-wrap">
                <table class="layui-table timo-table">
                    <thead>
                    <tr>
                        <th class="timo-table-checkbox">
                            <label class="timo-checkbox"><input type="checkbox">
                                <i class="layui-icon layui-icon-ok"></i></label>
                        </th>
                        <th>主键ID</th>
                        <th>打卡类型</th>
                        <th>打卡时间</th>
                        <th>用户ID</th>
                        <th>用户姓名</th>

                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="item:${list}">
                        <td><label class="timo-checkbox"><input type="checkbox" th:value="${item.id}">
                            <i class="layui-icon layui-icon-ok"></i></label></td>
                        <td th:text="${item.id}">主键ID</td>
                        <td th:text="${item.type}">打卡类型</td>
                        <td th:text="${item.recordTime}">打卡时间</td>
                        <td th:text="${item.userId}">用户ID</td>
                        <td th:text="${item.userId}">用户姓名</td>

                    </tr>
                    </tbody>
                </table>
            </div>
            <div th:replace="/common/my_fragment :: page"></div>
        </div>
    </div>
<script th:replace="/common/template :: script"></script>
    <script>
        layui.use(['element','laydate','form'], function () {
            var $ = layui.jquery;
            var dv = $(".dict-value");
            $(window).on("resize", function () {
                var width = $("body").width();
                if (width > 1200) {
                    dv.css("max-width", width * 0.32);
                } else {
                    dv.css("max-width", width * 0.20);
                }
            }).resize();
            var laydate = layui.laydate;
            laydate.render({
                elem:'#laydate',
                type:'month'

            });
        });
    </script>
</body>
</html>